<template>
  <div class="recommend">
    <div v-for="item in recommendList" :key="item.img" class="recommendItem">
      <img :src="item.image" :alt="item.title">
      <div class="title">{{item.title}}</div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "HomeRecommend",
    props: {
      recommendList: {
        type: Array,
        default(){
          return []
        }
      }
    }
  }
</script>

<style scoped>
  .recommend{
    display: flex;
    justify-items: center;
    align-items: center;
    border-bottom: 10px solid #eee;
    padding: 14px 0;
  }
  .recommendItem {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
  }
  .recommendItem img{
    width: 60%;
    height: 60%;
  }
  .title{
    font-size: 14px;
  }
</style>
